package com.maple.webrtc.ui

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.maple.webrtc.R

class HomeActivity : AppCompatActivity() {

    private var btnCamera: Button? = null
    private var btnApp: Button? = null


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_home)
        btnCamera = findViewById(R.id.btn_camera)
        btnApp = findViewById(R.id.btn_app)
        btnCamera?.setOnClickListener {
            startActivity(Intent(this@HomeActivity,CameraActivity::class.java))
        }
        btnApp?.setOnClickListener {
            startActivity(Intent(this@HomeActivity,AppActivity::class.java))
        }
    }
}